﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="LoaiSach.aspx.cs" Inherits="Admin_LoaiSach" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="740">
        <tr>
            <td style="height: 250px">
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="View1" runat="server">
                        <table align="center" border="0" cellpadding="5" cellspacing="5" style="width: 660px">
                        <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td style="width: 170px">
                                                Tìm Kiếm Tên Loại Sách:
                                            </td>
                                            <td align="center" style="width : 300px">
                                                <asp:TextBox ID="txttim" Width="250px" runat="server"></asp:TextBox>
                                            </td>
                                            <td style="width: 200px">
                                                <asp:Button ID="btntmkiem" runat="server" BackColor="#A52B2B" ForeColor="White" Text="Tìm Kiếm" OnClick="btntmkiem_Click"
                                                    Style="height: 26px" />
                                                <asp:Button ID="Button1" runat="server" BackColor="#A52B2B" ForeColor="White" onclick="Button1_Click" Text="Trở về" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" align="center">
                                                <asp:Button ID="btntaomoi" runat="server" BackColor="#A52B2B" ForeColor="White" Text="Thêm Loại Sách" OnClick="btntaomoi_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" style="height: 117px">
                                    <br />
                                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                        ForeColor="Black" GridLines="Both" OnPageIndexChanging="GridView1_PageIndexChanging"
                                        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AllowPaging="True" PageSize="5"
                                        OnRowDeleting="GridView1_RowDeleting" BackColor="White" 
                                        BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" Height="295px" 
                                        Width="593px">
                                        <Columns>
                                            <asp:CommandField ShowSelectButton="True" HeaderText="Chọn Thể Loại" 
                                                SelectText="Chọn" />
                                            <asp:CommandField ShowDeleteButton="True" DeleteText="Xóa" 
                                                HeaderText="Xóa thể loại" />
                                            <asp:BoundField DataField="MaLoaiSach" HeaderText="Mã Loại Sách" />
                                            <asp:BoundField DataField="TenLoaiSach" HeaderText="Tên Loại Sách" />
                                            
                                        </Columns>
                                        <EmptyDataTemplate>
                                            Tên Loại Sách Không Tồn Tại !
                                        </EmptyDataTemplate>
                                        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                                        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                                        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                                        <SortedAscendingCellStyle BackColor="#F7F7F7" />
                                        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                                        <SortedDescendingCellStyle BackColor="#E5E5E5" />
                                        <SortedDescendingHeaderStyle BackColor="#242121" />
                                    </asp:GridView>
                                </td>
                            </tr>
                            
                        </table>
                    </asp:View>
                    <asp:View ID="VIew2" runat="server">
                        <table width="640px" cellpadding="5" cellspacing="5">
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Mã Loại Sách:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:Label ID="lbma" runat="server" Text="Label"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    Tên Loại Sách:
                                </td>
                                <td style="width: 450px" align="left">
                                    <asp:TextBox ID="txttenloai" Width="200px" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    &nbsp;</td>
                                <td style="width: 450px" align="left">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    &nbsp;</td>
                                <td style="width: 450px" align="left">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                    &nbsp;</td>
                                <td style="width: 450px" align="left">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 170px; height: 15px; font-weight: bold; font-size: 15px" align="right">
                                </td>
                                <td align="left">
                                    <asp:Button ID="btninsert" Width="60px" runat="server" BackColor="#A52B2B" ForeColor="White" Text="Insert" Enabled="False"
                                        OnClick="btninsert_Click" ValidationGroup="hang" />
                                    <asp:Button ID="btnupdate" runat="server" Width="60px" BackColor="#A52B2B" ForeColor="White" Text="Update" OnClick="btnupdate_Click"
                                        ValidationGroup="hang" />
                                    <asp:Button ID="btnback" runat="server" BackColor="#A52B2B" ForeColor="White" Width="60px" Text="Trở Về" OnClick="btnback_Click" />
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                </asp:MultiView>
            </td>
        </tr>
    </table>
</asp:Content>

